#ifndef N2BITMAP_H_2009_10_12
#define N2BITMAP_H_2009_10_12

#include <stdio.h>
#include "N2Drawer.h"
#include "N1Lib.h"

class N2Bitmap : public N1Object {
public:
    N1NAME_DECL

    N2Size getSize() { return m_size; };

    N2Palette* getPalette() const { return m_palette; };

    static N2Bitmap* createFromBmpFile(N1AbstractFile *file);


protected:
    N2Size m_size;
    N2Palette *m_palette;

    N2Bitmap() : m_palette(NULL) { };
    virtual ~N2Bitmap();
};

void N2SaveBitmap(N1UnicodeString* path, const N2Drawer *drawer);
void N2SaveBitmap(FILE* file, const N2Drawer *drawer);

#endif //N2BITMAP_H_2009_10_12
